﻿using System.Data;
using System.Windows.Data;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for SummaryForm.xaml
    /// </summary>
    /// 
    public partial class JLTBB07
    {  
        #region==========CollectionViewSource=================
        CollectionViewSource vwPTXT
        {
            get
            {
                return (CollectionViewSource)this.FindResource("vwPTXT");
            }
        }
        DataRow dwPTXT
        {
            get
            {
                if (vwPTXT.View == null)
                    return null;
                if (vwPTXT.View.CurrentItem == null)
                    return null;
                return ((DataRowView)vwPTXT.View.CurrentItem).Row;
            }
        }
        CollectionViewSource vwVKKOPF
        {
            get
            {
                return (CollectionViewSource)this.FindResource("vwVKKOPF");
            }
        }
        DataRow dwVKKOPF
        {
            get
            {
                if (vwVKKOPF.View == null)
                    return null;
                if (vwVKKOPF.View.CurrentItem == null)
                    return null;
                return ((DataRowView)vwVKKOPF.View.CurrentItem).Row;
            }
        }
        CollectionViewSource vwVVLIEF
        {
            get
            {
                return (CollectionViewSource)this.FindResource("vwVVLIEF");
            }
        }
        DataRow dwVVLIEF
        {
            get
            {
                if (vwVVLIEF.View == null)
                    return null;
                if (vwVVLIEF.View.CurrentItem == null)
                    return null;
                return ((DataRowView)vwVVLIEF.View.CurrentItem).Row;
            }
        }
        /*
        public string ChkQuality
        {
            get
            {
                if (IsQuality.IsChecked == true)
                {
                    return "确认可达标";
                }
                return "不能达标";
            }
        }
        public string ChkColor
        {
            get
            {
                if (IsColor.IsChecked == true)
                {
                    return "颜色确认,复板周期__天";
                }
                return "颜色不确认,复板周期__天";
            }
        }
        public string ChkMaterial
        {
            get
            {
                if (IsMaterial.IsChecked == true)
                {
                    return "有原料，__月__日下复板单，__月__日下混棉单";
                }
                return "无原料，__月__日下复板单，__月__日下混棉单";
            }
        }
        public string ChkProd
        {
            get
            {
                if (IsProd.IsChecked == true)
                {
                    return "确认可按计划完成";
                }
                return "不能按计划完成";
            }
        }
      */
        #endregion  
    }
}
